package com.bj.disc.base

import androidx.lifecycle.MutableLiveData
import com.ai3d.rfid.base.vm.BaseViewModel
import com.ai3d.rfid.common.EventLiveData
import com.bj.disc.ui.login.bean.JoinedCompany
import com.bj.disc.ui.login.bean.UserInfo
import com.kunminx.architecture.ui.callback.UnPeekLiveData

/**
 * @ProjectName : Kolb
 * @Author : weijinsong
 * @Time : 2023/1/4 11:32
 * @Description : 文件描述
 */
class AppViewModel : BaseViewModel() {
    private val TAG = "AppViewModel"

    //App的账户信息
    var userInfo = EventLiveData<UserInfo>()

    //App的账户信息
    // var loginUserInfo = MutableLiveData<LoginUserInfo>()
    var loginToken = EventLiveData<String>()//我们平台的
    var failure = EventLiveData<Boolean>()

    //加入的企业信息
    var joinedCompanys =
        UnPeekLiveData.Builder<ArrayList<JoinedCompany>>().setAllowNullValue(true).create()


    //登录过期
    var loginExpired = MutableLiveData<Boolean>()

}